<?php

class Core_Form_Admincp_Element_Add extends Nuo_Form
{
	function init()
	{
		$this -> isAsync();

		$this -> setTitle('Edit Section Item');

		$this -> addChild('select', 'widget_id', array(
			'label' => 'Element',
			'multiOptions' => Nuo::getTable('core/widget') -> getMultiOptions(),
		));

		$this -> addChild('text', 'region_id', array('label' => 'Region'));

		$this -> addChild('text', 'sort_order', array(
			'label' => 'Sort Order',
			'value' => '99'
		));

		$this -> addChild('yesno', 'is_locked', array(
			'label' => 'Lock',
			'value' => 1
		));

		$this -> addChild('yesno', 'is_enabled', array(
			'label' => 'Enabled',
			'value' => 0
		));

		$this -> addChild('yesno', 'is_custom', array(
			'label' => 'Custom',
			'value' => 0
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
